#ifndef _SWITCH_DRV_H_
#define _SWITCH_DRV_H_
#include "gd32f30x.h"
#include <stdio.h>
#include <stdbool.h>
#include "user_mb_app.h"
#include "FreeRTOS.h"
#include "task.h"
#include "total_config.h"

 /**
  * @desc  : 开关设备初始化
  * @date  : 2025-11-05
  * @author: AnRui
  * @note  :
  */
bool switch_drv_init(void);


/**
 * @desc  : 打开风扇
 * @date  : 2025-11-11
 * @author: AnRui
 * @return: true
 * @return: false
 * @note  :
 */
bool switch_fan_open(void);



/**
 * @desc  : 关闭风扇
 * @date  : 2025-11-11
 * @author: AnRui
 * @return: true
 * @return: false
 * @note  :
 */
bool switch_fan_close(void);


/**
 * @desc  : 开灯
 * @date  : 2025-11-11
 * @author: AnRui
 * @return: true
 * @return: false
 * @note  :
 */
bool switch_light_open(void);



/**
 * @desc  : 关灯
 * @date  : 2025-11-11
 * @author: AnRui
 * @return: true
 * @return: false
 * @note  :
 */
bool switch_light_close(void);

#endif
